package com.lizemin;

/**
 * @author lzm
 * @date 2025/3/1 9:41
 * @description
 */
public class Dog {

    // 狗的名字
    private String name;

    // 狗的年龄
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void eat(){
        System.out.println("狗在吃东西");
    }

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

}
